package com.linc.facerecognitionsi.metadata;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by linc on 15-7-13.
 * the same data structure with database table.
 */
public class FaceData implements Parcelable {
    public String name;
    public String idCardNumber;
    public String featureCode;
    public String createTime;
    public String imagePathName;

    public FaceData() {

    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(idCardNumber);
        dest.writeString(featureCode);
        dest.writeString(createTime);
        dest.writeString(imagePathName);
    }

    private FaceData(Parcel dest) {
        name = dest.readString();
        idCardNumber = dest.readString();
        featureCode = dest.readString();
        createTime = dest.readString();
        imagePathName = dest.readString();
    }

    public static final Parcelable.Creator<FaceData> CREATOR = new Creator<FaceData>() {
        @Override
        public FaceData createFromParcel(Parcel source) {
            return new FaceData(source);
        }

        @Override
        public FaceData[] newArray(int size) {
            return new FaceData[size];
        }
    };
}
